﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000B0D RID: 2829
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MessageGroup : IMessage<MessageGroup>, IMessage, IEquatable<MessageGroup>, IDeepCloneable<MessageGroup>, IBufferMessage
	{
		// Token: 0x170023C3 RID: 9155
		// (get) Token: 0x06007EC2 RID: 32450 RVA: 0x001526EB File Offset: 0x001508EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MessageGroup> Parser
		{
			get
			{
				return MessageGroup._parser;
			}
		}

		// Token: 0x170023C4 RID: 9156
		// (get) Token: 0x06007EC3 RID: 32451 RVA: 0x001526F2 File Offset: 0x001508F2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MessageGroupReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170023C5 RID: 9157
		// (get) Token: 0x06007EC4 RID: 32452 RVA: 0x00152704 File Offset: 0x00150904
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MessageGroup.Descriptor;
			}
		}

		// Token: 0x06007EC5 RID: 32453 RVA: 0x0015270B File Offset: 0x0015090B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MessageGroup()
		{
		}

		// Token: 0x06007EC6 RID: 32454 RVA: 0x00152720 File Offset: 0x00150920
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MessageGroup(MessageGroup other) : this()
		{
			this.status_ = other.status_;
			this.messageSectionId_ = other.messageSectionId_;
			this.refreshTime_ = other.refreshTime_;
			this.id_ = other.id_;
			this.messageSectionList_ = other.messageSectionList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007EC7 RID: 32455 RVA: 0x00152785 File Offset: 0x00150985
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MessageGroup Clone()
		{
			return new MessageGroup(this);
		}

		// Token: 0x170023C6 RID: 9158
		// (get) Token: 0x06007EC8 RID: 32456 RVA: 0x0015278D File Offset: 0x0015098D
		// (set) Token: 0x06007EC9 RID: 32457 RVA: 0x00152795 File Offset: 0x00150995
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MessageGroupStatus Status
		{
			get
			{
				return this.status_;
			}
			set
			{
				this.status_ = value;
			}
		}

		// Token: 0x170023C7 RID: 9159
		// (get) Token: 0x06007ECA RID: 32458 RVA: 0x0015279E File Offset: 0x0015099E
		// (set) Token: 0x06007ECB RID: 32459 RVA: 0x001527A6 File Offset: 0x001509A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MessageSectionId
		{
			get
			{
				return this.messageSectionId_;
			}
			set
			{
				this.messageSectionId_ = value;
			}
		}

		// Token: 0x170023C8 RID: 9160
		// (get) Token: 0x06007ECC RID: 32460 RVA: 0x001527AF File Offset: 0x001509AF
		// (set) Token: 0x06007ECD RID: 32461 RVA: 0x001527B7 File Offset: 0x001509B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long RefreshTime
		{
			get
			{
				return this.refreshTime_;
			}
			set
			{
				this.refreshTime_ = value;
			}
		}

		// Token: 0x170023C9 RID: 9161
		// (get) Token: 0x06007ECE RID: 32462 RVA: 0x001527C0 File Offset: 0x001509C0
		// (set) Token: 0x06007ECF RID: 32463 RVA: 0x001527C8 File Offset: 0x001509C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x170023CA RID: 9162
		// (get) Token: 0x06007ED0 RID: 32464 RVA: 0x001527D1 File Offset: 0x001509D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MessageSection> MessageSectionList
		{
			get
			{
				return this.messageSectionList_;
			}
		}

		// Token: 0x06007ED1 RID: 32465 RVA: 0x001527D9 File Offset: 0x001509D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MessageGroup);
		}

		// Token: 0x06007ED2 RID: 32466 RVA: 0x001527E8 File Offset: 0x001509E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MessageGroup other)
		{
			return other != null && (other == this || (this.Status == other.Status && this.MessageSectionId == other.MessageSectionId && this.RefreshTime == other.RefreshTime && this.Id == other.Id && this.messageSectionList_.Equals(other.messageSectionList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007ED3 RID: 32467 RVA: 0x00152868 File Offset: 0x00150A68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Status != MessageGroupStatus.MessageGroupNone)
			{
				num ^= this.Status.GetHashCode();
			}
			if (this.MessageSectionId != 0U)
			{
				num ^= this.MessageSectionId.GetHashCode();
			}
			if (this.RefreshTime != 0L)
			{
				num ^= this.RefreshTime.GetHashCode();
			}
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			num ^= this.messageSectionList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007ED4 RID: 32468 RVA: 0x00152906 File Offset: 0x00150B06
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007ED5 RID: 32469 RVA: 0x0015290E File Offset: 0x00150B0E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007ED6 RID: 32470 RVA: 0x00152918 File Offset: 0x00150B18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Status != MessageGroupStatus.MessageGroupNone)
			{
				output.WriteRawTag(32);
				output.WriteEnum((int)this.Status);
			}
			this.messageSectionList_.WriteTo(ref output, MessageGroup._repeated_messageSectionList_codec);
			if (this.Id != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Id);
			}
			if (this.RefreshTime != 0L)
			{
				output.WriteRawTag(72);
				output.WriteInt64(this.RefreshTime);
			}
			if (this.MessageSectionId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.MessageSectionId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007ED7 RID: 32471 RVA: 0x001529BC File Offset: 0x00150BBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Status != MessageGroupStatus.MessageGroupNone)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Status);
			}
			if (this.MessageSectionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MessageSectionId);
			}
			if (this.RefreshTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.RefreshTime);
			}
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			num += this.messageSectionList_.CalculateSize(MessageGroup._repeated_messageSectionList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007ED8 RID: 32472 RVA: 0x00152A58 File Offset: 0x00150C58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MessageGroup other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Status != MessageGroupStatus.MessageGroupNone)
			{
				this.Status = other.Status;
			}
			if (other.MessageSectionId != 0U)
			{
				this.MessageSectionId = other.MessageSectionId;
			}
			if (other.RefreshTime != 0L)
			{
				this.RefreshTime = other.RefreshTime;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			this.messageSectionList_.Add(other.messageSectionList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007ED9 RID: 32473 RVA: 0x00152AE1 File Offset: 0x00150CE1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007EDA RID: 32474 RVA: 0x00152AEC File Offset: 0x00150CEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 42U)
				{
					if (num == 32U)
					{
						this.Status = (MessageGroupStatus)input.ReadEnum();
						continue;
					}
					if (num == 42U)
					{
						this.messageSectionList_.AddEntriesFrom(ref input, MessageGroup._repeated_messageSectionList_codec);
						continue;
					}
				}
				else
				{
					if (num == 64U)
					{
						this.Id = input.ReadUInt32();
						continue;
					}
					if (num == 72U)
					{
						this.RefreshTime = input.ReadInt64();
						continue;
					}
					if (num == 104U)
					{
						this.MessageSectionId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04003075 RID: 12405
		private static readonly MessageParser<MessageGroup> _parser = new MessageParser<MessageGroup>(() => new MessageGroup());

		// Token: 0x04003076 RID: 12406
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003077 RID: 12407
		public const int StatusFieldNumber = 4;

		// Token: 0x04003078 RID: 12408
		private MessageGroupStatus status_;

		// Token: 0x04003079 RID: 12409
		public const int MessageSectionIdFieldNumber = 13;

		// Token: 0x0400307A RID: 12410
		private uint messageSectionId_;

		// Token: 0x0400307B RID: 12411
		public const int RefreshTimeFieldNumber = 9;

		// Token: 0x0400307C RID: 12412
		private long refreshTime_;

		// Token: 0x0400307D RID: 12413
		public const int IdFieldNumber = 8;

		// Token: 0x0400307E RID: 12414
		private uint id_;

		// Token: 0x0400307F RID: 12415
		public const int MessageSectionListFieldNumber = 5;

		// Token: 0x04003080 RID: 12416
		private static readonly FieldCodec<MessageSection> _repeated_messageSectionList_codec = FieldCodec.ForMessage<MessageSection>(42U, MessageSection.Parser);

		// Token: 0x04003081 RID: 12417
		private readonly RepeatedField<MessageSection> messageSectionList_ = new RepeatedField<MessageSection>();
	}
}
